package com.easylinkin.linkappapi.lobar.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.lobar.entity.UserCertificate;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户资质证书 Mapper 接口
 * </p>
 *
 * @author kanyuanfeng
 * @since 2022-05-18
 */
public interface UserCertificateMapper extends BaseMapper<UserCertificate> {
  List<UserCertificate> queryList(@Param("userCertificate") UserCertificate userCertificate);

  List<UserCertificate> findByTenantId(@Param("tenantId") String tenantId);

  /**
   * 获取我的证书数量
   * @param userId 用户id
   * @return 证书数量
   */
  int getMyCertNum(String userId);
}
